package ma.jee.portailReservation.framework.dao.hibernate;

import ma.jee.portailReservation.framework.dao.IDAO;
import org.hibernate.Session;
import org.hibernate.criterion.Criterion;

import java.io.Serializable;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 22/12/11
 * Time: 00:37
 * To change this template use File | Settings | File Templates.
 */
public interface IHibernateDAO< K extends Serializable, T > extends IDAO< K, T > {

    Session getHibernateSession();

    List< T > findByCriteria(Criterion... criteria);

    List< T > findByExample(T instance, String[] excludeProperties);
}

